package cn.nfwx.tv.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import cn.nfwx.tv.R;
import cn.nfwx.tv.model.TvChannel;
import cn.nfwx.tv.util.GlideUtil;

public class NyqfLiveAdapter extends BaseQuickAdapter<TvChannel, BaseViewHolder> {
    public NyqfLiveAdapter() {
        super(R.layout.item_nyqf_live);
    }

    @Override
    protected void convert(BaseViewHolder helper, TvChannel item) {
        GlideUtil.loadImage(mContext,item.getLogo(), (ImageView) helper.getView(R.id.iv_item_nyqf_liveicon));
        helper.setText(R.id.tv_item_nyqf_channel, item.getName());
        helper.setText(R.id.tv_item_nyqf_current_program, item.getProgram_name());
    }
}
